package com.sunda.spmsoversea.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 安全库存表
 * </p>
 *
 * @author Wayne
 * @since 2022-01-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SAFETY_INVENTORY")
@ApiModel(value="SafetyInventory对象", description="安全库存表")
public class SafetyInventory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "UUID唯一主键")
    @TableId("UUID")
    private String uuid;

    @ApiModelProperty(value = "工厂代码")
    @TableField("WERKS")
    private String werks;

    @ApiModelProperty(value = "物料编号")
    @TableField("MATERIAL_NO")
    private String materialNo;

    @ApiModelProperty(value = "基本单位")
    @TableField("BASIC_UNIT")
    private String basicUnit;

    @ApiModelProperty(value = "安全库存基本单位数量")
    @TableField("SAFETY_QTY_BASIC_UNIT")
    private Double safetyQtyBasicUnit;

    @ApiModelProperty(value = "安全库存数据状态,默认1有效,0无效")
    @TableField("SPMS_STATUS")
    private String spmsStatus;

    @ApiModelProperty(value = "上年度标准耗用量")
    @TableField("STANDARD_CONSUMPTION_LAST_YEAR")
    private Double standardConsumptionLastYear;

    @ApiModelProperty(value = "安全库存年数(默认0.5年)")
    @TableField("SAFETY_INVENTORY_YEAR")
    private Double safetyInventoryYear;

    @ApiModelProperty(value = "应急储备量(基本单位)")
    @TableField("EMERGENCY_RESERVE_BASIC_UNIT")
    private Double emergencyReserveBasicUnit;

    @ApiModelProperty(value = "备注")
    @TableField("REMARKS")
    private String remarks;

    @ApiModelProperty(value = "评论/预留")
    @TableField("COMMENTS")
    private String comments;

    @ApiModelProperty(value = "数据版本号")
    @TableField("DATA_VERSION")
    private Integer dataVersion;

    @ApiModelProperty(value = "创建人工号")
    @TableField("CREATE_USERID")
    private String createUserid;

    @ApiModelProperty(value = "更新人工号")
    @TableField("UPDATE_USERID")
    private String updateUserid;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private Date updateTime;

    @ApiModelProperty(value = "仓库地点代码")
    @TableField("WHS_LOCATION_CODE")
    private String whsLocationCode;

}
